package com.atguigu.yjh.member.service;

import com.atguigu.yjh.member.exception.PhoneExsitException;
import com.atguigu.yjh.member.exception.UsernameExistException;
import com.atguigu.yjh.member.vo.MemberLoginVo;
import com.atguigu.yjh.member.vo.MemberRegistVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.yjh.common.utils.PageUtils;
import com.atguigu.yjh.member.entity.MemberEntity;

import java.util.Map;

/**
 * 
 *
 * @author yangjiahao
 * @email 2091312274@qq.com
 * @date 2022-07-08 21:50:10
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExsitException;

    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo vo);
}

